#include "Game.hpp"
#include "PhysicWorld.hpp"


Game::Game(Level& l):
m_level(l),
m_ball(l.startPos())
{

}

void Game::update(const float dt)
{
    PhysicWorld::instance().update(dt);
    m_ball.update();
}

void Game::draw(sf::RenderTarget& t)
{
    m_level.draw(t);
    t.draw(m_ball);
}
